package com.ds.infrastructure.audit.consumer;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * 作用：
 *
 * @author WeiShaoying
 */
@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients(basePackages = {
        "com.ds.infrastructure.audit.producer.api.service",
        "com.ds.infrastructure.audit.road.api.service"}
)
//@EnableHystrix
@EnableCircuitBreaker
@Slf4j
public class ConsumerApplication {

    public static void main(String[] args) {
        SpringApplication.run(ConsumerApplication.class, args);
        log.info("====ConsumerApplication EnableHystrix22 Start Success");
    }

}
